﻿#include "dlgabout.h"
#include "ui_dlgabout.h"
#include <QUrl>
#include <QDateTime>
#include "../taskbus_version.h"
DlgAbout::DlgAbout(QWidget *parent) :
	QDialog(parent),
	ui(new Ui::DlgAbout)
{
	ui->setupUi(this);
	ui->textBrowser_About->
		setText(tr("Taskbus is a cross-platform"
				   " multi-process cooperation framework for non-professional "
				   "developers, with four features of process based, "
				   "language independent, compiler independent, and architecture Independent.\n"
				   "by Colored Eagle Studio, 2016~%1").arg(QDateTime::currentDateTime().date().year()) +
				"\n"
				"This program is free software: you can redistribute it and/or modify"
				" it under the terms of the GNU General Public License as published by"
				" the Free Software Foundation, either version 3 of the License, or"
				" (at your option) any later version."
				"\nThis program is distributed in the hope that it will be useful, "
				"but WITHOUT ANY WARRANTY; without even the implied warranty of "
				"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the "
				"GNU General Public License for more details. "
				"\nYou should have received a copy of the GNU General Public License "
				"along with this program.  If not, see <https://www.gnu.org/licenses/>."
				);
	ui->label_version->setText(QString("V%1").arg(TASKBUS_VERSION));
}

DlgAbout::~DlgAbout()
{
	delete ui;
}

void DlgAbout::on_pushButton_Next_clicked()
{
	this->accept();
}

void DlgAbout::on_pushButton_Close_clicked()
{
	this->reject();
}
